package com.cjh.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjh.common.dto.PermissionDTO;
import com.cjh.common.dto.PermissionDTO1;
import com.cjh.common.entity.Permission;

import java.util.List;
import java.util.Set;

/**
 * @Entity com.cjh.common..Permission
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Set<String> selectAllPermissionByUsername(String username);

    List<PermissionDTO> getMenuTree(Integer permissionId);

    List<PermissionDTO1> getMenuByUserId(Integer id, Integer permissionId);
}




